#include "game.h"
#include <stdbool.h>
#include <malloc.h>
#include <string.h>
#include <allegro5/allegro5.h>

typedef struct {
    int max_option;
    int index;
    int init_x;
    int init_y;
    int row_space;
    int col_space;
    int state;
    int prev_state;
    ALLEGRO_BITMAP *prev_bitmap;
} Menu;

Menu *menu_init(int max_option, int init_x, int init_y, int row_space, 
int col_space, int state, int prev_state, ALLEGRO_BITMAP *prev_bitmap);
void menu_output(ALLEGRO_BITMAP *selection);
bool menu_update(ALLEGRO_EVENT *event);
void menu_jumpto(Game *game);
void menu_exit(Game *game);